
import {arrayToObject} from "@utils/arrayHelper";
export const WAREHOUSE_ORDER_STATUS_LIST =  [
    {
        id: '',
        name: '全部'
    }, {
        id: 10,
        name: '待备货'
    }, {
        id: 11,
        name: '待自提'
    }, {
        id: 20,
        name: '待发货'
    }, {
        id: 21,
        name: '已发货'
    }, {
        id: 98,
        name: '已完成'
    }, {
        id: 99,
        name: '已取消'
    },
]
export const WAREHOUSE_ORDER_STATUS = arrayToObject(WAREHOUSE_ORDER_STATUS_LIST, 'id', 'name')
export const WAREHOUSE_ORDER_STATUS_CODE = {
    'await_order_ready': 10,//待备货
    'await_self_take': 11,//待自提
    'await_deliver': 20,//待发货
    'already_deliver': 21,//已发货
    'finished': 98,//已完成
    'closed': 99,//已取消
}

export const WAREHOUSE_REFUND_ORDER_STATUS_LIST = [
    {
        id: '',
        name: '全部'
    },
    {
        id: '31',
        name: '已发货'
    },
    {
        id: '32',
        name: '已拒绝'
    }, {
        id: '33',
        name: '退货完成'
    }
]

export const WAREHOUSE_REFUND_ORDER_STATUS = arrayToObject(WAREHOUSE_REFUND_ORDER_STATUS_LIST, 'id', 'name')


// 调拨状态
export const WAREHOUSE_SCHEDULE_LIST =  [
    {
        id: '',
        name: '全部'
    }, {
        id: '1',
        name: '待审核'
    }, {
        id: '2',
        name: '已审核'
    }, {
        id: '3',
        name: '已入库'
    }, {
        id: '4',
        name: '已拒绝'
    }
]
export const WAREHOUSE_SCHEDULE_STATUS = arrayToObject(WAREHOUSE_SCHEDULE_LIST, 'id', 'name')